package com.ll.utils;

import java.util.List;
/**
 * 分页对象，用于分页操作时，返回的分页数据
 * @author sunhuaili
 *
 */
public class PageList<T> {
	//表示第几页，从0开始
	private int pageIndex;
	//表示每页大小
	private int pageSize;
	//数据库中总的记录条数
	private int count;
	//这次请求的数据结果
	private List<T> dataList;
	
	public PageList(int pageIndex,int pageSize){
		this.pageIndex = pageIndex;
		this.pageSize = pageSize;
	}
	
	public int getPageIndex() {
		return pageIndex;
	}
	
	public void setPageIndex(int pageIndex) {
		this.pageIndex = pageIndex;
	}
	public int getPageSize() {
		return pageSize;
	}
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	public int getCount() {
		return count;
	}
	public void setCount(int count) {
		this.count = count;
	}
	public List<T> getDataList() {
		return dataList;
	}
	public void setDataList(List<T> dataList) {
		this.dataList = dataList;
	}
	
}
